/* 白天模式配色 */
:root {
    // 背景色
    --jhin-bg-body: #fff;
    --jhin-bg-info: #e6f3ff;
    --jhin-bg-light: #f8f9fa;
    --jhin-bg-danger: #dc3545;
    --jhin-bg-muted: #999;
    --jhin-bg-transparent: transparent;
    --jhin-border: #53B1A8;
    --jhin-border-primary: #337ab7;
    --jhin-border-muted: #eee;
    --jhin-border-info: #BED8EA;
    --jhin-shadow: #ccc;
    --jhin-shadow-light: #eee;
    --jhin-scrollbar-track-bg: #f2f2f2;
    --jhin-scrollbar-thumb-bg: #c1c1c1;
    --jhin-text-body: #000;
    --jhin-text-muted: #999;
    --jhin-text-light:#fff;
    --jhin-text-danger:#dc3545;
    --jhin-a: #08c;
    --jhin-a-muted: #666;
    --jhin-btn: #333;
    --jhin-btn-bg: rgb(245, 245, 245);
    --jhin-btn-bg-image: linear-gradient(to bottom, rgb(255, 255, 255) 50%, rgb(230, 230, 230) 100%);
    --jhin-btn-border: rgba(0, 0, 0, 0.1);
    --jhin-pagination: #337ab7;
    --jhin-pagination-border: #ddd;
    --jhin-pagination-disabled: #333;
    --jhin-pagination-disabled-bg: #fff;
    --jhin-pagination-active: #ffffff;
    --jhin-pagination-active-bg: #337ab7;
    --jhin-pagination-active-border: #337ab7;
    --jhin-alert-notice: #177cb0;
    --jhin-alert-notice-bg: #f5f5f5;
    --jhin-alert-notice-border: #177cb0;
    --jhin-tag: #999;
    --jhin-tag-bg: #eee;
    --jhin-img-filter: none;
    --jhin-header-bg: #53B1A8;
    --jhin-relationship-empty-color: #999fa5;
    --jhin-relationship-item-color: #333333;
}

/* 夜间模式配色 */
@import "mark.less";


/*规定rem单位字体大小*/
html {
    font-size: 16px !important;
}

// 滚动条
::-webkit-scrollbar {
    width: 10px;
    height: 1px;
}
::-webkit-scrollbar-track {
    background-color: var(--jhin-scrollbar-track-bg );
}
::-webkit-scrollbar-thumb {
    background-color: var(--jhin-scrollbar-thumb-bg);
}

body {
    color: var(--jhin-text-body);
    background-color: var(--jhin-bg-body);
    box-shadow: 0 0 15px var(--jhin-shadow);
}

input, select, textarea {
    &:hover {
        outline: none;
        border-color: var(--jhin-border-primary);
    }
    &:focus-visible {
        outline: none;
        border-color: var(--jhin-border-primary);
    }
    
    background-color: var(--jhin-bg-body);
    border:1px solid var(--jhin-border-muted);
    color: var(--jhin-white);
}

button, input[type=submit], input[type=button] {
    background-color: var(--jhin-btn-bg);
    background-image: var(--jhin-btn-bg-image);
    border:1px solid var(--jhin-border-muted);
    color: var(--jhin-btn);
}

img, iframe, video, audio {
    filter: var(--jhin-img-filter);
}

/*表情包*/
.hu60_face, #face img {
	width: 32px;
	max-width: 32px;
}

/*主题页面布局*/
/*页面共用组件*/
/*全局通用组件,这一部分组件以 widget- 开头*/
/*页面头部*/
/*用户面板*/
/*移动端，弹出用户面板*/
/*用户面板结束*/
/*收信箱界面*/
/*论坛主题部分*/
/* 搜索页面 */
/*帖子列表*/
/*帖子页面部分*/
/*分页组件开始*/
/*分页组件结束*/
/*评论框部分*/
/* 登录框组件*/
/*发帖组件开始*/
/*发帖组件结束*/
/*聊天室页面*/

h1 {
    font-size: 24px;
    font-weight: 500;
    line-height: 150%;
    margin: 0px 0px 10px 0px;
    padding: 0px;
}
/*通用组件*/
.case{
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
}
.content-box {
    padding-left: 5px;
    padding-right: 5px;
}
.avatar{
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    vertical-align: middle;
}
.pull-right{
    float: right;
}
/*头部组件*/
.layout-header{
    //position: fixed;
    width: 100%;
    background: var(--jhin-header-bg);
    color: var(--jhin-text-light);
    height: 80px;
    display: flex;
    align-items: center;
    .header-logo img {
        max-height: 80px;
    }
    .header-inner{
        display: flex;
        justify-content:space-between;
        align-items: center;
        .header-nav{
            list-style-type: none;
            display: flex;
            align-items: center;
            >li{
                margin-right: 20px;
                a{
                    color: var(--jhin-text-light);
                }
            }
            .userAvatar {
                width: 48px;
                min-width: 48px;
                height: 48px;
                min-height: 48px;
                border-radius: 50%;
                vertical-align: middle;
            }
        }
    }
}
.forum-list{
    display: block;
    flex-wrap: wrap;
    padding-left: 40px;
    .forum-list-line {
        display: flex;
        min-height: 35px;
    }
    .forum-list-parent {
        margin: 0;
        padding: 0;
        display: inline-block;
        > a{
            display: inline-block;
            background: var(--jhin-tag-bg);
            color: var(--jhin-tag);
            border-radius: 5px;
            font-size: 12px;
            padding: 5px;
            margin: 3px;
            font-weight: bold;
        }
    }
    .forum-list-child{
        margin: 0;
        padding: 0;
        display: inline-block;
        > a{
            display: inline-block;
            margin-left: 10px;
            background: var(--jhin-tag-bg);
            color: var(--jhin-tag);
            border-radius: 5px;
            font-size: 12px;
            padding: 5px;
            margin: 3px;
        }
    }
}
.layout-footer{
    background: var(--jhin-bg-body);
    margin-top: 15px;
    padding-bottom: 15px;
    .case{
        display: flex;
        justify-content:space-between;
        align-items: center;
        div {
            margin: 0 auto;
        }
    }

    a{
        color: var(--jhin-a-muted);
    }
    .footer-link{
        width: 400px;
        list-style-type: none;
        display: flex;
        flex-wrap: wrap;
        >li{
            margin-left: 10px;
            font-size: 12px;
        }
    }
}
.container {
    .case;
    box-shadow: 0 0 15px var(--jhin-shadow);
    border-radius: 3px;
    background-color: var(--jhin-bg-body);
    min-height: 95vh;
    word-wrap: break-word;
}


.layout-foot-inner {
    margin-top: 25px;
    padding: 25px 0;
    background-color: var(--jhin-bg-info);
    p {
        text-align: center;
    }
}

.bar {
    color: var(--jhin-text-body);
    background-color: var(--jhin-bg-info);
    font-size: 1.1rem;
    font-weight: 400;
    padding: 5px 18px;
}

.breadcrumb {
    padding: 8px 15px;
    list-style: none;
    background-color: var(--jhin-bg-light);
    border-radius: 4px;
}

.widget-page {
    margin: 5px 0;
    > a {
        display: inline-block;
        padding: 5px 15px;
    }
}
/*顶部翻页器加上一条底线*/
.top-pager {
    border-bottom: 1px solid var(--jhin-border-muted);
    padding-bottom: 10px;
}

.profile {
    padding: 5px;
    position: absolute;
    width: 240px;
    min-height: 250px;
    left: -260px;
    top: 0px;

    .userHeader {
        height: 48px;
    }
    /*
    .userPanel {
        list-style-type: none;
        padding: 0;
        padding-left: 10px;
        font-size: 0.8rem;
        > li {
            margin: 5px;
            padding: 0;
            > a {
                color: var(--jhin-a-muted);
                display: block;
                padding: 5px 25px 5px 25px;
                border-radius: 5px;
                &:hover {
                    background: var(#666);
                    color: var(#fff);
                }
            }
        }
    }
    */

    // 已废弃样式？
    .profileClose {
        font-size: 40px;
        display: none;
        position: absolute;
        bottom: 25px;
        right: 50%;
        margin-left: 40px;
        border-radius: 50%;
        color: #ffa400;
    }

    .profileFilm {
        display: none;
        position: fixed;
        left: 0;
        right: 80vw;
        top: 0;
        bottom: 0;
    }
    // 已废弃样式？
    .userAvatar {
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        border-radius: 10px;
        border: 3px solid #fff;
        vertical-align: middle;
    }

    .userName {
        font-size: 1.5em;
        font-weight: bold;
    }
}





.msg-box {
    padding-left: 15px;
    border-bottom: 2px solid var(--jhin-border-info);
    .avatar{
        width: 32px;
        height: 32px;
    }
}

.forum-name {
    font-size: 1.2rem;
    padding: 5px 15px;
    background-color: var(--jhin-bg-info);
}

.search-list {
    ul {
        list-style-type: none;
    }
}

.topic-ul {
    list-style-type: none;
    padding: 0;
    > li {
        padding: 5px 10px 2px 10px;
        border-bottom: 1px solid var(--jhin-border-muted);
        display: flex;
        align-items: center;
        justify-content: space-between;
        .topic-meta {
            margin: 0px;
        }
        .topic-reply-count{
            width: 5%;
            display: flex;
            font-weight: 300;
            font-size: 30px;
            color: var(--jhin-text-muted);
            a{
                color: var(--jhin-a-muted);
            }
        }
        .topic-forum-name {
            width: 15%;
            display: flex;
            a{
                color: var(--jhin-a-muted);
            }
        }
        .topic-anchor{
            width: 20%;
            display: flex;
            flex-direction: column;
            align-items: center;
            word-break: break-all;
            >a{
                color: var(--jhin-a-muted);
            }
        }
        .topic-title{
            width: 60%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            >a{
                font-size: 18px;
                display: block;
            }
        }
    }
}


.reply-ul {
    list-style-type: none;
    padding: 0;
    > li {
        padding: 5px 10px 2px 10px;
        border-bottom: 1px solid var(--jhin-border-muted);
        .topic-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            .topic-meta {
                margin: 0px;
            }
            .topic-reply-count{
                width: 5%;
                display: flex;
                font-weight: 300;
                font-size: 30px;
                color: var(--jhin-text-muted);
                a{
                    color: var(--jhin-a-muted);
                }
            }
            .topic-anchor, .comments-anchor{
                width: 10%;
                display: flex;
                flex-direction: column;
                align-items: center;
                word-break: break-all;
                >a{
                    color: var(--jhin-a-muted);
                }
            }
            .topic-title{
                width: 65%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                >a{
                    font-size: 18px;
                    display: block;
                }
                margin-left: 10px;
            }
            .reply-floor{
                margin-left: 10px;
                width: 10%;
                display: flex;
                font-weight: 300;
                font-size: 16px;
                color: var(--jhin-text-muted);
                a {
                    color: var(--jhin-a-muted);
                }
            }
        }
        blockquote {
            background: var(--jhin-bg-light);
            border-left: 10px solid var(--jhin-border-muted);
            margin: 10px;
            padding: 0.5em 10px;
            max-height: 500px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        blockquote:before {
            color: var(--jhin-text-muted);
            font-size: 4em;
            line-height: 0.1em;
            margin-right: 0.25em;
            vertical-align: -0.4em;
        }
    }
}

.topic {
    > h1 {
        margin-left: 15px;
        margin-right: 15px;
    }
}


.topic-content {
    border-top: 2px solid var(--jhin-border-info);
    background-color: var(--jhin-bg-body);
}

.topic-meta {
    font-size: 0.8rem;
    margin-left: 10px;
    margin-bottom: 5px;
    color: var(--jhin-text-muted);
    display: flex;
    align-items: center;
    .topic-meta-name {
        margin-left: 5px;
        line-height: 1.1rem;
    }
    .topic-actions {
        margin-left: 5px;
        a {
            color: var(--jhin-a-muted);
        }
    }
}

.comments-meta {
    font-size: 0.8rem;
    color: var(--jhin-text-muted);
    display: flex;
    align-items: center;
    .comments-meta-name {
        margin-left: 5px;
        line-height: 1.1rem;
    }
    .comments-actions {
        margin-left: 5px;
        a {
            color: var(--jhin-a-muted);
        }
    }
}

.topic-panel {
    background-color: var(--jhin-bg-light);
    > a {
        display: inline-block;
        padding: 5px 8px;
        font-size: 1rem;
        color: var(--jhin-a);
        &:hover {
            color: var(--jhin-text-light);
            background-color: var(--jhin-bg-danger);
        }
    }
    > div {
        display: inline-block;
        padding: 5px 8px;
        font-size: 1rem;
        color: var(--jhin-text-muted);
    }
    a {
        > i {
            font-size: 1rem;
        }
    }
}

.page-jumper {
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    padding-left: 2px;
    margin: 10px 0 0 20px;
    > li {
        display: inline-block;
        > input {
            height: 33px;
            width: 60px;
            margin-left: -1px;
            margin-bottom: 3.5px;
            padding: 5px 10px;
            border: 1px solid var(--jhin-pagination-border);
            border-radius: 5px;
            color: var(--jhin-pagination);
        }
    }
}

.pagination {
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    padding-left: 2px;
    margin: 10px 0 0 20px;
    > li {
        display: inline-block;
        &:first-child {
            > a {
                border-radius: 5px 0 0 5px;
            }
        }
        &:last-child {
            > a {
                border-radius: 0 5px 5px 0;
            }
        }
        > a {
            position: relative;
            margin-left: -1px;
            display: block;
            padding: 5px 10px;
            border: 1px solid var(--jhin-pagination-border);
            color: var(--jhin-pagination);
        }
    }
    > .disabled {
        > a {
            color: var(--jhin-pagination-disabled);
            cursor: not-allowed;
            background-color: var(--jhin-pagination-disabled-bg);
            &:focus {
                color: var(--jhin-pagination-disabled);
                cursor: not-allowed;
                background-color: var(--jhin-pagination-disabled-bg);
            }
            &:hover {
                color: var(--jhin-pagination-disabled);
                cursor: not-allowed;
                background-color: var(--jhin-pagination-disabled-bg);
            }
        }
    }
    > .active {
        > a {
            color: var(--jhin-pagination-active);
            cursor: default;
            background-color: var(--jhin-pagination-active-bg);
            border-color: var(--jhin-pagination-active-border);
            &:focus {
                color: var(--jhin-pagination-active);
                cursor: default;
                background-color: var(--jhin-pagination-active-bg);
                border-color: var(--jhin-pagination-active-border);
            }
            &:hover {
                color: var(--jhin-pagination-active);
                cursor: default;
                background-color: var(--jhin-pagination-active-bg);
                border-color: var(--jhin-pagination-active-border);
            }
        }
    }
}

.comments-ul {
    list-style-type: none;
    padding: 0;
    > li {
        position: relative;
        padding-top: 5px;
        border-bottom: 2px solid var(--jhin-border-muted);
    }
}

.topic-content, .chat-content, .floor-content, .floor_content {
    transition: height 0.5s;
    transition-timing-function: ease;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
}

.floor_fold_bar {
    width: 100%;
    margin: 0;
}
.floor_fold_bar button {
	height: 32px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
}

// 帖子回复楼层数
.comments-number {
    height: 25px;
    width: 40px;
    line-height: 25px;
    margin-right: 5px;
    border-radius: 0 10px 10px 0;
    text-align: center;
    font-weight: 700;
    color: var(--jhin-tag);
    background-color: var(--jhin-tag-bg);
}

.topic-author, .comments-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jhin-a);
    position: relative;
    top: 2px;
}

.chat-new p {
    text-align: left;
}

.login-form {
    max-width: 450px;
    margin: 20px auto;
    border-radius: 5px;
    padding: 15px 25px;
    box-shadow: 0 0 5px var(--jhin-shadow);
}

.input-group {
    padding: 8px;
    position: relative;
    input[type="text"] {
        width: 100%;
        padding: 8px 20px 8px 60px;
        border: 1px solid var(--jhin-border-muted);
    }
    input[type="password"] {
        width: 100%;
        padding: 8px 20px 8px 60px;
        border: 1px solid var(--jhin-border-muted);
    }
    input[type="mail"] {
        width: 100%;
        padding: 8px 20px 8px 60px;
        border: 1px solid var(--jhin-border-muted);
    }
}

.login-form-submit {
    display: inline-block;
    width: 60%;
    height: 2rem;
    margin: 0 auto;
}
.comments-form-content {
    width: calc(100% - 10px);
    height:100px;
    margin:8px 5px;
    padding: 10px;
    border-radius: 5px;
    outline-style: none;
    border: 1px solid var(--jhin-border);
    box-shadow: inset 0 0 2px 2px var(--jhin-shadow-light);
    &:hover{
        border: 1px solid var(--jhin-border-primary);
    }
}
.login-label {
    display: inline-block;
    color: var(--jhin-tag);
    position: absolute;
    left: 15px;
    top: 14px;
}

.widget-form {
    margin: 0;
    padding: 8px;
    //border-top: 1px solid #EEE;
    border-bottom: 1px solid var(--jhin-border-muted);
}

.topic-form-label {
    display: block;
    background-color: var(--jhin-tag-bg);
    font-size: 1.2rem;
}

.topic-form-title {
    display: block;
    font-size: 16px;
    border: 2px solid var(--jhin-border-muted);
    border-radius: 0;
    width: calc(100% - 10px);
    margin: 5px;
    padding: 5px;
}

.topic-form-content {
    display: block;
    border: 2px solid var(--jhin-border-muted);
    height: 300px;
    border-radius: 0;
    width: calc(100% - 10px);
    margin: 5px;
    padding: 5px;
}

.chat-form-content {
    width: calc(100% - 10px);
    height: 100px;
}

.chat-list {
    padding: 0;
    list-style-type: none;
    > li {
        margin: 0;
        padding-top: 5px;
        border-bottom: 1px solid var(--jhin-border-muted);
        position: relative;
    }
}

.chat-number {
    height: 25px;
    line-height: 25px;
    padding: 0 12px;
    text-align: center;
    font-weight: 700;
    background-color: var(--jhin-tag-bg);
    color: var(--jhin-tag);
    border-radius: 0 5px 5px 0;
    display: flex;
}

.floor-link {
	color: var(--jhin-a-muted);
}

.chat-meta-name {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
}

.chat-meta {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--jhin-text-muted);
    display: flex;
    align-items: center;
    .chat-actions {
        padding-left: 5px;
        a {
            color: var(--jhin-a-muted);
        }
    }
}

.chat-avatar {
    display: flex;
    padding: 0 5px;
}

/*头像上传页面*/
.Cropper-avatar #avatar {
    border-radius: 50%;
}

/*小说阅读*/
.book-content {
    padding: 10px;
}

/*搜索框选项*/
#searchType-label {
    display: inline-block;
}

.alert-notice {
    color: var(--jhin-alert-notice);
    border: 1px solid var(--jhin-alert-notice-border);
    background-color: var(--jhin-alert-notice-bg);
    padding: 10px;
}

@media screen and (max-width: 1200px) {
    .container {
        position: static;
        left: auto;
    }

    .profile {
        position: static;
        min-height: 0;
        height: 50px;
        border: none;
        display: inline-block;
        float: right;
        width: auto;
        left: auto;
        right: auto;
        top: auto;
        padding: 0 15px 0 0;
        border-radius: 0;
        box-shadow: none;
        > a {
            line-height: 50px;
        }
    }

    .userPanel {
        display: none;
    }

    .userName {
        font-size: 1.1rem;
    }

    .userHead {
        width: 30px;
        height: 30px;
    }

    .profileMobile {
        display: block;
        position: fixed;
        height: 100vh;
        width: 80vw;
        right: 0;
        background-color: var(--jhin-bg-body);
        .profileFilm {
            display: block;
        }
        .profileClose {
            display: block;
        }
        .userPanel {
            display: block;
            > li {
                display: block;
                border-bottom: 1px solid var(--jhin-border-muted);
            }
            a {
                background-color: var(--jhin-bg-transparent);
                display: block;
            }
        }
    }
}

@media screen and (max-width: 600px) {
    /*帖子列表和顶部列表 <ul> 的左侧默认padding*/
    .forum-list, .header-nav {
        padding-left: 10px;
    }
    /*顶部列表 <li>*/
    .layout-header .header-inner .header-nav > li {
        margin-right: 10px;
    }
    /*回帖内容缩进*/
    .topic-content, .chat-content, .floor-content, .floor_content {
        padding-left: 15px;
        padding-right: 15px;
    }
    /*顶部头像*/
    .layout-header .header-inner .header-nav .userAvatar {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }
    /*首页帖子列表右侧回复数和版块*/
    .topic-ul > li .topic-reply-count{
        display: block;
    }
    .topic-ul > li .topic-reply-count .number {
        display: block;
        font-size: 14px;
    }
    .topic-ul > li .topic-reply-count .spliter {
        display: none;
    }
    .topic-ul > li .topic-reply-count .forum {
        display: block;
        font-size: 14px;
    }
    /*首页帖子列表*/
    .topic-ul > li .topic-anchor > a {
        font-size: 14px;
    }
    .topic-ul > li .topic-title > a {
        font-size: 16px;
    }
    .topic-ul > li .topic-reply-count {
        display: none;
    }
    .topic-ul > li .topic-forum-name {
        display: none;
    }
    .topic-ul > li .topic-title {
        width: 80%;
    }
    /*回复列表*/
    .reply-ul > li .topic-anchor > a {
        font-size: 14px;
    }
    .reply-ul > li .topic-title > a {
        font-size: 16px;
    }
    .reply-ul > li .topic-info .reply-floor {
        font-size: 18px;
    }
    /*头像上传页面*/
    .layout-body .cropper-box {
        display: block;
        .Cropper-case {
            max-width: 100%;
            max-height: 360px;
        }
    }
    /*发言框*/
    textarea {
        width: calc(100% - 10px);
    }
    .topic-form-title {
        width: calc(100% - 10px);
        font-size: 16px;
    }
    /*帖子标题*/
    .topic h1 {
        font-size: 18px;
    }
}

/*避免手机截图在电脑上显示过大*/
@media screen and (min-width: 800px) {
    img {
        max-width: 800px;
        max-height: 600px;
    }
}

/* 关注与屏蔽列表样式 */
.relationship-wrapper {
    .empty {
        width: 100%;
        text-align: center;
        color: var(--jhin-relationship-empty-color);
        font-size: 14px;
    }
    .user-item {
        width: 100%;
        max-width: 100%;
        height: 60px;
        color: var(--jhin-relationship-item-color);
        display: flex;
        border-bottom: 1px solid var(--jhin-border-muted);
        .avatar {
            width: 80px;
            min-width: 80px;
            height: 100%;
            text-align: center;
            img {
                width: 50px;
                height: 50px;
                border-radius: 50px;
            }
        }
        .info {
            flex: 1;
            max-width: calc(100% - 80px);
            padding-top: 10px;
            .name_action{
                font-size: 18px;
                display:flex;
                .name {
                    flex: 2;
                }
                .action_bar {
                    flex: 1;
                    .action {
                        display: inline-block;
                        color: var(--jhin-text-danger);
                    }
                }
            }
            .signature {
                color: var(--jhin-text-muted);
                font-size: 12px;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
            }
        }
    }
}
